//
//  CommentViewController.m
//  PCNews
//
//  Created by PengchengWang on 16/3/3.
//  Copyright © 2016年 pengchengWang. All rights reserved.
//

#import "CommentViewController.h"

@interface CommentViewController ()

@end

@implementation CommentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setViews];
    // Do any additional setup after loading the view.
}

-(void)setViews{
    [self.view setBackgroundColor:[UIColor blueColor]];
    self.navigationItem.title = @"评论";
#pragma mark - 设置navigationController的title颜色
    //创建颜色UIColor
    UIColor * color = [UIColor whiteColor];
    //创建NSDictionary,对应key和颜色
    NSDictionary * dict = [NSDictionary dictionaryWithObject:color forKey:NSForegroundColorAttributeName];
    //设置navigationController颜色
    self.navigationController.navigationBar.titleTextAttributes = dict;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
